-- GENERATED SPELL FOR [Death's Might] --


function spell0_21519(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21519', 559, 1)
end

function spell1_21519(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(32736,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21519', 5348, 1)
end

function Sorts_21519(pUnit, Event)
local choix_sorts_21519 = math.random(0, 1)
if choix_sorts_21519 == 0 then
pUnit:RegisterEvent('spell0_21519', 1, 1)
end
if choix_sorts_21519 == 1 then
pUnit:RegisterEvent('spell1_21519', 1, 1)
end
end

function mob21519_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21519', math.random(1500, 3000), 1)
end

function mob21519_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21519_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21519_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21519, 1, 'mob21519_Action')
RegisterUnitEvent(21519, 2, 'mob21519_Leave')
RegisterUnitEvent(21519, 3, 'mob21519_Kill')
RegisterUnitEvent(21519, 4, 'mob21519_Die')
